 import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import './style';
import App from './App';

{
    const s1=window.location.href.toString();
     if (s1.indexOf('http://127.0.0.1:3000/')===0||s1.indexOf('http://localhost:3000/')===0){
          window.ip='http://10.18.67.220:8080/lnei';
         window.barIp=s1.indexOf('http://localhost:3000/')===0?'http://localhost:3000/#':'http://127.0.0.1:3000/#';
         console.log('本地'+window.barIp);
     }else {
         window.ip=/\S*lnei/.exec(window.location.href);
         window.barIp=window.ip+'/#';
         console.log('服务器'+window.barIp);
     }

}

ReactDOM.render(<App />, document.getElementById('root'));


